class Bus {
    private _site = 1 // 私有
    protected type = 'mnos' // 保护类，子类及自己可以访问
    public name = 'chuck'

    subscribe(){
        console.log(this._site)
    }
    dispatch(){
        console.log(this.name, '公有')
    }
}
class bar extends Bus {
    constructor(){
        super()
    }
}
const res =  new bar()
// console.log(res._site) // Property '_site' is private and only accessible within class 'Bus'.
console.log(res.name)
res.subscribe()
export default{

}